
var init = {
	verifyTable : function(url){
		$.get(url,function(data){
			var obj = JSON.parse(data);
			if(obj.code==200){
				//渲染
				$("#initTime").val(obj.msg);
				var href = $("#nav-a-admin-merchant").attr("href");
				$("#nav-a-admin-merchant").attr("href",href+"?initTime="+obj.msg);
				render.renderVerifyTable($("#verify-table-body"), obj.data);
				
				//启动检查器
				var initTime = $.notify.getUrlParam("initTime");
				if(initTime == undefined || initTime == null){
					initTime = $("#initTime").val();
				}
				$.notify.work($("#notify-area"), initTime, 3*1000);
			}else{
				alert("init verify table error");
			}
		});
	},
	
	merchantList : function(url, target, state){
		$.get(url+"?state="+state,function(data){
			var obj = JSON.parse(data);
			if(target == "#untreated-table"){
				render.renderUntreatedMerchantList($(target), obj.data);
			}else if(target == "#pass-table"){
				render.renderPassMerchantList($(target), obj.data);
			}else if(target == "#refuse-table"){
				render.renderRefuseMerchantList($(target), obj.data);
			}
		});
	}
};

